cmake_minimum_required(VERSION 3.29)
project(cplus_test)

set(CMAKE_CXX_STANDARD 14)

include_directories(/Users/kevin/work_pjt_up/eigen-3.4.0)


set (FFTW3_LIBRARY_DIRS /Users/kevin/work_pjt_up/fftw/lib)
set (FFTW3_INCLUDE_DIRS /Users/kevin/work_pjt_up/fftw/include)
include_directories(${FFTW3_INCLUDE_DIRS})
link_directories(${FFTW3_LIBRARY_DIRS})

# 设置CMAKE_PREFIX_PATH变量，使其包含FFTW的安装路径
#set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};/Users/kevin/work_pjt_up/fftw")

# 添加FFTW的find模块路径，如果没有添加到CMAKE_MODULE_PATH的话
#set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};/Users/kevin/work_pjt_up/fftw/lib/cmake/fftw3")

# 查找FFTW库
#find_package(FFTW3 REQUIRED)

add_executable(cplus_test main.cpp
                utils.h
                utils.cpp
        tx_PRBSGeneration_lte.h
        tx_PRBSGeneration_lte.cpp
        tx_modulationQAM.h
        tx_modulationQAM.cpp
        lte_getPRBVectors.h
        lte_getPRBVectors.cpp
)
target_link_libraries(cplus_test fftw3)


#add_executable(cplus_test main.cpp
#        lte_para.h
#        lte_type.h
#        lte_para.cpp
#        lte_getDefaultTM.cpp
#        lte_getDefaultTM.h
#        lte_getofdminfo.cpp
#        lte_getofdminfo.h
#        lte_getresourcegrid.cpp
#        lte_getresourcegrid.h
#        lte_cellRSREs.h
#        lte_cellRSREs.cpp
#        utils.h
#        utils.cpp
#        lte_cellRS.h
#        lte_cellRS.cpp
#)
